package com.garden.web.context.config;


import com.garden.web.interceptor.AccessLogInterceptor;
import com.garden.web.interceptor.InterceptorHandle;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;


public abstract class AbstractSystemConfig {
    @Resource
    public AccessLogInterceptor actionLogInterceptor;

    public abstract void config();

    @PostConstruct
    public void initConfig() {
        config();
    }

    public void registerActionLogInterceptor(InterceptorHandle interceptorHandle) {
        actionLogInterceptor.setInterceptorHandle(interceptorHandle);
    }
}
